﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Web.UI;
using System.Web.UI.WebControls;
using weikebuluo.DAL;
using weikebuluo.Model;
using weikebuluo.Common;

namespace weikebuluo.wxgzpt.wechat.orderfood
{
    public partial class myorder : System.Web.UI.Page
    {
        a_order_dal orderdal = new a_order_dal();
        protected DataTable dtorder = new DataTable();
        a_orderfood_dal orderfooddal = new a_orderfood_dal();
        protected DataTable[] dtorderfood = new DataTable[10];

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(Request.QueryString["wxid"]))
            {

                dtorder = orderdal.GetList1("wxid='" + Request.QueryString["wxid"] + "'  order by order_id desc").Tables[0];
                if (dtorder.Rows.Count > 0) {
                    for (int i = 0; i < dtorder.Rows.Count; i++) {
                        dtorderfood[i] = orderfooddal.GetList1("order_id=" + dtorder.Rows[i]["order_id"]).Tables[0];
                    }
                
                }
            }
        }
    }
}